package com.itheima.web.servlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author huyoufu <https://github.com/huyoufu>
 * @TIME 2021-09-13 20:19
 * @description
 */
@WebServlet("/hello")
public class HelloServlet  extends HttpServlet {
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {


        //通过 response 响应内容给浏览器
        resp.setContentType("text/html;charset=utf-8");
        for (int i = 0; i <10000; i++) {

            resp.getWriter().print("你好我好<br/>");
        }











    }
}
